package com.gong.DesignPattern.OrderPattern;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/6/24 0024 10:31
 */
public class Test {

    public static void main(String[] args) {
        Stock stock = new Stock();
        Order buy = new BuyOrder(stock);
        Order sell = new BuyOrder(stock);

        Broker broker = new Broker();
        broker.takeTusk(buy);
        broker.takeTusk(sell);

        broker.doWork();
    }
}
